package com.tz.online.entity;

public class Address {
	private Long addressId; // 地址ID
	private String area; // 区域
	private String detailAddres; // 详细地址
	private String emailCode; // 邮编
	private String reciver; // 收件人
	private String tel; // 手机号
	private String isDefault; // 是否默认收货地址 0：否 1：是
	private User user; // 地址所属用户

	public Address() {
	}

	public Address(Long addressId) {
		super();
		this.addressId = addressId;
	}

	public Long getAddressId() {
		return addressId;
	}

	public void setAddressId(Long addressId) {
		this.addressId = addressId;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getDetailAddres() {
		return detailAddres;
	}

	public void setDetailAddres(String detailAddres) {
		this.detailAddres = detailAddres;
	}

	public String getEmailCode() {
		return emailCode;
	}

	public void setEmailCode(String emailCode) {
		this.emailCode = emailCode;
	}

	public String getReciver() {
		return reciver;
	}

	public void setReciver(String reciver) {
		this.reciver = reciver;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(String isDefault) {
		this.isDefault = isDefault;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Address [addressId=");
		builder.append(addressId);
		builder.append(", area=");
		builder.append(area);
		builder.append(", detailAddres=");
		builder.append(detailAddres);
		builder.append(", emailCode=");
		builder.append(emailCode);
		builder.append(", reciver=");
		builder.append(reciver);
		builder.append(", tel=");
		builder.append(tel);
		builder.append(", isDefault=");
		builder.append(isDefault);
		builder.append(", user=");
		builder.append(user);
		builder.append("]");
		return builder.toString();
	}

}
